how to solve compound inequalities and graph their solution